﻿namespace MyWebApp.Data
{
    public class Mapper
    {
        public static int MapCategory(string value)
        {
            switch (value)
            {
                case "All" :
                    return 16420;
                case "City":
                    return 16482;
                case "MTB":
                    return 16483;
                case "Other":
                    return 16479;
                case "Road":
                    return 16484;
                case "Trekking":
                    return 16485;
                case "BMX":
                    return 16480;
                case "Kids":
                    return 16481;

            }

            return 0;
        }

        public static string MapCategory(int value)
        {
            switch (value)
            {
                case 16482:
                    return "City";
                case 16483:
                    return "MTB";
                case 16479:
                    return "Other";
                case 16484:
                    return "Road";
                case 16485:
                    return "Trekking";
                case 16480:
                    return "BMX";
                case 16481:
                    return "Kids";
            }

            return string.Empty;
        }

        public static int MapSate(string value)
        {
            switch (value)
            {
                case "dolnośląskie":
                    return 1;
                case "lubelskie":
                    return 2;
                case "lubuskie":
                    return 3;
                case "łódzkie":
                    return 4;
                case "małopolskie":
                    return 5;
                case "mazowieckie":
                    return 6;
                case "opolskie":
                    return 8;
                case "podkarpackie":
                    return 9;
                case "podlaskie":
                    return 10;
                case "pomorskie":
                    return 11;
                case "śląskie":
                    return 12;
                case "świętokrzystkie":
                    return 13;
                case "warmińsko-mazurskie":
                    return 14;
                case "wielkopolskie":
                    return 15;

            }

            return 0;
        }
    }
}